package com.piece.core.authentication.exception;

import com.piece.core.framework.constant.ExceptionAuthConstants;
import com.piece.core.framework.util.basic.I18nUtil;
import org.springframework.security.core.AuthenticationException;

/**
 * 用户错误最大次数异常类
 */
public class UserPasswordRetryLimitExceedException extends AuthenticationException {

    public UserPasswordRetryLimitExceedException(int retryLimitCount, int lockTime) {
        super(I18nUtil.message(ExceptionAuthConstants.LOGIN_LIMIT_EXCEED, retryLimitCount, lockTime));
    }
}
